/**
 * 
 */
package com.java.test.user.dto;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

/**
 * @author Administrator
 *
 */
public class MemberInfo implements RowMapper<MemberInfo> {

	// 主键
	private int id;

	// 账号
	private String account;

	// 账号类型
	private int accountType;

	// 所属分成
	private int sliceValue;

	// 当前等级
	private int gradeValue;

	// 登陆ip
	private String loginIp;

	// 游戏位置
	private String gameLocation;

	private Double currentMoney;

	// 地区
	private String area;

	// 钱类型
	private int moenyType;

	// 注册时间
	private String registerTime;

	// 注册渠道
	private String registerChannel;

	private String content;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public int getAccountType() {
		return accountType;
	}

	public void setAccountType(int accountType) {
		this.accountType = accountType;
	}

	public int getSliceValue() {
		return sliceValue;
	}

	public void setSliceValue(int sliceValue) {
		this.sliceValue = sliceValue;
	}

	public int getGradeValue() {
		return gradeValue;
	}

	public void setGradeValue(int gradeValue) {
		this.gradeValue = gradeValue;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getGameLocation() {
		return gameLocation;
	}

	public void setGameLocation(String gameLocation) {
		this.gameLocation = gameLocation;
	}

	public Double getCurrentMoney() {
		return currentMoney;
	}

	public void setCurrentMoney(Double currentMoney) {
		this.currentMoney = currentMoney;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public int getMoenyType() {
		return moenyType;
	}

	public void setMoenyType(int moenyType) {
		this.moenyType = moenyType;
	}

	public String getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(String registerTime) {
		this.registerTime = registerTime;
	}

	public String getRegisterChannel() {
		return registerChannel;
	}

	public void setRegisterChannel(String registerChannel) {
		this.registerChannel = registerChannel;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public MemberInfo mapRow(ResultSet rs, int rowNum) throws SQLException {

		MemberInfo info = new MemberInfo();

		info.setId(rs.getInt("id"));
		info.setAccount(rs.getString("account"));
		info.setAccountType(rs.getInt("account_type"));
		info.setGradeValue(rs.getInt("grade"));
		info.setLoginIp(rs.getString("login_ip"));
		info.setSliceValue(rs.getInt("slice_value"));
		info.setGameLocation(rs.getString("game_location"));
		info.setCurrentMoney(rs.getDouble("current_money"));
		info.setArea(rs.getString("area"));
		info.setMoenyType(rs.getInt("money_type"));
		info.setRegisterTime(rs.getString("register_time"));
		info.setRegisterChannel(rs.getString("register_channel"));
		info.setContent(rs.getString("content"));
		return info;
	}

}
